﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Xml.Serialization;

namespace Love.Awesome.TMX
{
    [XmlType("tile")]
    public class Tile
    {
        [XmlAttribute("id")]
        public int ID;

        [XmlAttribute("class")]
        public string Class;

        [XmlAttribute("probability")]
        public float Probability;

        [XmlAttribute("x")]
        public int X;

        [XmlAttribute("y")]
        public int Y;

        [XmlAttribute("width")]
        public int Width;

        [XmlAttribute("height")]
        public int Height;

        [XmlElement("properties")]
        public Properties Properties;

        [XmlElement("image")]
        public Image Image;

        [XmlElement("objectgroup")]
        public ObjectGroup ObjectGroup;

        [XmlElement("animation")]
        public Animation Animation;
    }
}
